//
//  UIImageExtensions.h
//  MantuPlay
//
//  Created by Markus Sintonen on 9.4.2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIImage (UndocumentedUIImage)
- (UIImage*)_imageScaledToSize:(CGSize)newSize interpolationQuality:(float)aQuality;
@end

@interface UIImage (UIImageExtensions)
+ (UIImage*)imageWithImage:(UIImage*)image scaledToSize:(CGSize)newSize;
- (UIImage*)scaleImageToSize:(CGSize)newSize keepAspectRatio:(BOOL)keepAspect;
- (UIImage*)scaleImageToSize:(CGSize)newSize;
-(BOOL)writeJPEGImageToFile:(NSString*)path compressionQuality:(float)quality;
/*-(NSData*)customDataRepresentation;
+(UIImage*)imageFromCustomDataRepresentation:(NSData*)dic;*/
@end
